//
//  EnviadorDeEmails.m
//  SEIO2012
//
//  Created by Gonzalo Abella Dago on 19/05/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "EnviadorDeEmails.h"


@implementation EnviadorDeEmails

+ (BOOL)dispositivoConfiguradoParaMandarEmails
{
	return [MFMailComposeViewController canSendMail];
}

- (UIViewController *)sendEmailTo:(NSString*)email
					  withSubject:(NSString*)subject
						 withBody:(NSString*)body
{
	MFMailComposeViewController *mailViewController = [[MFMailComposeViewController alloc] init];
	[mailViewController setSubject:subject];
	[mailViewController setMessageBody:body isHTML:NO];
	return mailViewController;
}
@end
